<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<c:set var="title" value="Authentication Service" scope="page"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${title}</title>
    </head>
    <body>
        <h1>${title}</h1>
        <f:view>
            <!-- Show error message -->
            <h:messages showSummary="true" showDetail="false" style="color: red; font-family: 'New Century Schoolbook', serif; font-style: oblique" id="errors"/>

            <h:form id="authenticationForm">
                <table>
                    <tr>
                        <td>Username:</td>
                        <td class="required">*</td>
                        <td><h:inputText value="#{AuthenticationCorporateClientJSFManagedBean.username}" required="true" id="username"/></td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td class="required">*</td>
                        <td><h:inputSecret value="#{AuthenticationCorporateClientJSFManagedBean.password}" required="true" id="password"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                        <td><h:commandButton id="submit" value="Login" action="#{AuthenticationCorporateClientJSFManagedBean.login}"/></td>
                    </tr>
                </table>
            </h:form>
        </f:view>
    </body>
</html>